* {
    margin: 0px;
    padding: 0px;
    font: 0.95em Arial, sans-serif;
}

body.popup {
    width: 500px;
    overflow-x: hidden;
}

.video {
    margin: 5px;
    margin-top: 0;
    border-bottom: 1px solid #eee;
}

.video:last-child {
    border-bottom: none;
}

#template {
    display: none;
}

h1 {
    font-size: 1.4em;
    font-variant: small-caps;
    margin: 4px;
    margin-left: 15px;
}

.img {
    width: 120px;
    height: 90px;
    padding: 4px;
    border: 1px solid #eee;
    border-radius: 4px;
    margin: 0 5px 5px 0;
    float: left;
    position: relative;
}

.img a {
    text-decoration: none;
}

img {
    width: 120px;
    height: 90px;
}

.time {
    display: block;
    position: relative;
    top: -17px;
    margin-right: 3px;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 4px;
    min-width: 31px;
    padding-left: 2px;
    padding-right: 2px;
    float: right;
    text-align: center;
    color: white;
    font-weight: bold;
}

h2, p {
    float: left;
    width: 320px;
    margin-bottom: 4px;
}

h2 {
    height: 16px;
    overflow: hidden;
}

.clear {
    clear: both;
}

p a {
    color: blue;
}

h2 ~ p {
    max-height: 60px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.img ~ a {
    margin-right: 15px;
    float: right;
    border: 1px solid #555;
    border-radius: 4px;
    width: 15px;
    text-align: center;
    margin-bottom: -15px;
    background: white;
    font-weight: bold;
    text-decoration: none;
    cursor: pointer;
}

fieldset {
    margin: 10px;
}

form {
    font-size: 1.1em;
    width: 700px;
    margin: 30px auto 20px auto;
}

form table {
    width: 100%;
}

legend {
    margin-left: 15px;
    padding: 4px;
    font-weight: bold;
}

form th, form label {
    text-align: right;
    padding-right: 8px;
    font-weight: bold;
}

form label {
    padding: 0;
}

form td, form th {
    padding-bottom: 3px;
    padding-top: 3px;
    font-size: 1.06em;
}

form td[colspan="2"] {
    text-align: right;
}

input[type="submit"] {
    margin-right: 15px;
    padding: 0 3px 0 3px;
}

.caption {
    color: white;
    background: lightBlue;
    background: -webkit-linear-gradient(top, #b9d2e5 0%,#89beed 48%,#89beed 50%,#8abff7 100%);
    margin: 9px 18px;
    border-radius: 4px;
    text-align: center;
}

.caption span {
    font-weight: bold;
    font-size: 1.1em;
    padding: 8px;
    display: block;
}

form ~ div {
    width: 320px;
    margin: 10px auto;
}

form ~ div ~ form {
    text-align: center;
    clear: both;
}

form img {
    display: none;
}

.notification {
    overflow: hidden;
}

.notification .img, .notification img {
    width: 80px;
    height: 60px;
}

.notification .time {
    top: -18px;
}

.notification h2, .notification p {
    width: 180px;
}

.notification div + p {
    width: 290px;
}

.notification .views {
    margin-right: 25px;
}

#donate-switch p {
    text-align: right;
}

#donate-switch a {
    text-decoration: none;
}

.options fieldset {
    border: 1px solid #dd1e2c;
    border-radius: 5px;
}

.options legend {
    background: #dd1e2c;
    background: -webkit-linear-gradient(top, #db676e 0%, #dd1e2c 100%);
    color: white;
    padding: 4px 11px;
    border-radius: 5px;
}

.options input[type="text"], .options select {
    border: 1px solid #dd1e2c;
    border-radius: 3px;
    background: white;
    padding: 2px;
}

.options form > fieldset {
    background: -webkit-linear-gradient(top, #fff4f4 0%,#ffd3d4 100%);
}

.options fieldset fieldset {
    background: white;
}

.options input[type="submit"] {
    border: 2px solid #db676e;
    border-radius: 5px;
    background: -webkit-linear-gradient(top, #fff4f4 0%,#ffd3d4 100%);
    padding: 5px 15px;
    font-weight: bold;
}

.right-align {
    text-align: right;
}

a.report-issue {
    color: blue;
    text-decoration: none;
    text-align: right;
}

.install p, .install div {
    width: 100%;
    margin-bottom: 25px;
}

.install fieldset {
    padding: 15px;
}

.bold {
    font-weight: bold;
}

.popup h1 {
    float: left;
    width: 300px;
}

.popup #clear-all {
    display: block;
    float: right;
    width: 140px;
    color: black;
    text-decoration: none;
    border: 1px solid black;
    border-radius: 4px;
    box-shadow: #aaa 0 0 5px;
    text-shadow: #aaa 0 0 5px;
    margin: 7px 10px;
    text-align: center;
}

.popup :focus {
    outline: none;
}

.popup .video button {
    position: absolute;
    right: 2px;
    bottom: 2px;
    display: none;
    padding: 3px;
}

.popup .video:hover button {
    display: initial;
}

.status-icon {
    display: block;
    width: 13px;
    height: 13px;
    background-repeat: no-repeat;
    background-position: center center;
}

button.error {
    background: #ff3434;
    border: 1px solid silver;
    border-radius: 3px;
}

button.success {
    background: #02d637;
    border: 1px solid silver;
    border-radius: 3px;
}

button.error .status-icon {
    background-image: url("images/error.png");
}

button.success .status-icon {
    background-image: url("images/success.png");
}

.add-to-watch-later {
    background-image: url("images/watch-later.png");
}

.progress {
    background-image: url("images/progress-frames.png");
}

.progress-frame-0 {
    background-position: 0 0;
}

.progress-frame-1 {
    background-position: 0 -13px;
}

.progress-frame-2 {
    background-position: 0 -26px;
}

.progress-frame-3 {
    background-position: 0 -39px;
}

.progress-frame-4 {
    background-position: 0 -52px;
}

.progress-frame-5 {
    background-position: 0 -65px;
}

.progress-frame-6 {
    background-position: 0 -78px;
}

.progress-frame-7 {
    background-position: 0 -91px;
}

.progress-frame-8 {
    background-position: 0 -104px;
}

.progress-frame-9 {
    background-position: 0 -117px;
}

.progress-frame-10 {
    background-position: 0 -130px;
}

.progress-frame-11 {
    background-position: 0 -143px;
}

.install p {
    text-align: justify;
}

.install p small {
    font-size: 12px;
}
